#!/usr/bin/env python
# encoding: utf-8
"""
create_snapshot.py

Created by Bud Gibson on 2010-06-17.
Copyright (c) Bud Gibson 2010. Released under the Artistic/GPL License.
"""
import datetime
import config
from construct_graph import base_graph

try: #buzztracker on system path
  import buzztracker.conf as conf
  import buzztracker.persistnet.snapshots as snap
except ImportError: #buzztracker not on system path
  import sys
  import os
  sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
  import buzztracker.conf as conf
  import buzztracker.persistnet.snapshots as snap

def create_snapshot():
  """Gets a snapshot of the current participant network and stows it"""
  struct = {
    'dateRun': datetime.datetime.now(),
    'participants': base_graph(conf.SEED)
  }
  snap.store_snap(struct)

def main():
  create_snapshot()


if __name__ == '__main__':
  main()

